package com.alumni_circle.service.me.impl;

import com.alumni_circle.entity.me.Authentication;
import com.alumni_circle.entity.me.VO.AuthenticationViewVO;
import com.alumni_circle.mapper.me.AuthenticationMapper;
import com.alumni_circle.service.me.IAuthenticationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AuthenticationServiceImpl extends ServiceImpl<AuthenticationMapper, Authentication> implements IAuthenticationService {

    @Resource
    AuthenticationMapper authenticationMapper;

    @Override
    public List<AuthenticationViewVO> getAll() {
        return authenticationMapper.getAll();
    }

    @Override
    public List<AuthenticationViewVO> search(String username, String club) {
        return authenticationMapper.search(username,club);
    }
}
